package mk.company.fin.model;

//import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
//import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
//import javax.persistence.GenerationType;
import javax.persistence.Id;
//import javax.persistence.OneToMany;
import javax.persistence.Table;

import mk.company.fin.FinConstants;

@Entity
@Table(name = FinConstants.Tables.DOCUMENT)
public class Document extends Model {

	private static final long serialVersionUID = -1199923097017053394L;

	// persistent
	private Long id;
	private String name;
	private String description;
//	private List<NalogEntry> nalogEntries;
	
	
	@Id
	@Column(name = "id_document")
	@GeneratedValue//(strategy = GenerationType.SEQUENCE)
	public Long getId() {
		return id;
	}
	
	public void setId(Long id) {
		this.id = id;
	}

	@Column(nullable = false, length = 75)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

//	@OneToMany(mappedBy = "document", orphanRemoval = false, fetch = FetchType.LAZY)
//	public List<NalogEntry> getNalogEntries() {
//		return nalogEntries;
//	}
//
//	public void setNalogEntries(List<NalogEntry> nalogEntries) {
//		this.nalogEntries = nalogEntries;
//	}
//	

}
